import request from "@/utils/request";

// 查询banner管理列表
export function listBanner(query) {
  return request({
    url: "/app/banner/list",
    method: "get",
    params: query,
  });
}

// 查询banner管理详细
export function getBanner(bannerId) {
  return request({
    url: "/app/banner/" + bannerId,
    method: "get",
  });
}

// 新增banner管理
export function addBanner(data) {
  return request({
    url: "/app/banner",
    method: "post",
    data: data,
  });
}

// 修改banner管理
export function updateBanner(data) {
  return request({
    url: "/app/banner",
    method: "put",
    data: data,
  });
}

// 删除banner管理
export function delBanner(bannerId) {
  return request({
    url: "/app/banner/" + bannerId,
    method: "delete",
  });
}

// 获取活动列表
export function selectActivity() {
  return request({
    url: "/app/activity/selectActivity",
    method: "get",
  });
}
